<template>
    <div>
        <van-nav-bar title="详情" left-text="返回" left-arrow @click-left="$router.go(-1)" />
        <DynamicCell 
            :is_dynamicDetail="true" 
            :userInfo="userInfo"
            :dynamic="
                ($route.query?.dynamic_id != undefined) && 
                (dynamic.find(item => item._id == $route.query?.dynamic_id))
            "
        />
    </div>
</template>

<script>
    import { mapState } from 'vuex';

    export default {
        components : {
            DynamicCell: () => import("@/components/common/dynamicCell.vue"),
        },
        computed: {
            ...mapState('userInfo',['dynamic', 'userInfo']),
        },
    }
</script>